package com.xz.simplerpc.registry;

import com.xz.simplerpc.extension.URL;

import java.util.List;

/**
 * Created by fingal on 2018/1/9.
 */
public interface Registry {

    void register(URL url);

    void unregister(URL url);

    void subscribe(URL url, NotifyListener listener);

    void unsubscribe(URL url, NotifyListener listener);

    List<URL> lookup(URL url);

}
